package com.vdongchina.miniapp.http.dto;

import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Copyright (C)
 * FileName: QueryOrderResp
 * Author:   maokai
 * Date:     2021/8/12 16:18
 * Description:
 */
@Data
public class QueryOrderResp extends ServiceResp {
    @JsonAlias(value = "out_order_no")
    private String outOrderNo;
    @JsonAlias(value = "order_id")
    private String orderId;
    @JsonAlias(value = "payment_info")
    private PaymentInfo paymentInfo;

    @Data
    public static class PaymentInfo implements Serializable {
        //支付金额
        @JsonAlias(value = "total_fee")
        private int totalFee;
        //PROCESSING-处理中|SUCCESS-成功|FAIL-失败|TIMEOUT-超时
        @JsonAlias(value = "order_status")
        private String orderStatus;
        //支付时间
        @JsonAlias(value = "pay_time")
        private LocalDateTime payTime;
        //支付渠道：2-支付宝，1-微信，3-银行卡
        private int way;
        //渠道单号
        @JsonAlias(value = "channel_no")
        private String channelNo;
        //渠道网关号
        @JsonAlias(value = "channel_gateway_no")
        private String channelGatewayNo;
        //卖家商户号
        @JsonAlias(value = "seller_uid")
        private String sellerUid;
        @JsonAlias(value = "item_id")
        //视频id
        private String itemId;
    }
}
